package com.gpframework.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class LoadMessageListener implements ApplicationListener<ContextRefreshedEvent>, Ordered {


    @Override
    public int getOrder() {
        return Integer.MAX_VALUE;
    }

    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        //准备启动完成
        log.debug("Ready to start complete.................");

    }

}
